package com.itheima.edu.day21Thread;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {
    //此处泛型表示的是返回值的类型
    @Override
    public String call() throws Exception {
        for (int i = 0; i < 100; i++) {
            System.out.println("我爱你"+i+"次");
        }

        //返回值就表示线程运行完毕之后的结果
        return "答应了！";
    }
}
